import request from '@/utils/request'
const getTrademarkList = (page,limit) => request({
  url: `/admin/product/baseTrademark/${page}/${limit}`,
  method: 'get'
})
const saveTrademark = (tm) => {
  if(tm.id) {
    return request.put('/admin/product/baseTrademark/update',tm)
  }else {
   return request.post('/admin/product/baseTrademark/save',tm)
  } 
}
const deleteTrade = (id) => {
  return request.delete(`/admin/product/baseTrademark/remove/${id}`)
}
const getList = () => {
  return request.get(`/admin/product/baseTrademark/getTrademarkList`)
}
export default {
  getTrademarkList,
  saveTrademark,
  deleteTrade,
  getList
}
